<?php

function smarty_block_loop($params, $content, &$smarty)
{
   $rows = $params['n'];//循环的行数
   $str="";
   while(true){
        $str.=$content;
        $rows--;
        if($rows<=0)return $str;
   }

}

/* vim: set expandtab: */

?>
